package com.example.springboot_demo.mappers;

import com.example.springboot_demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @BelongsProject: springboot_demo
 * @BelongsPackage: com.example.springboot_demo.mappers
 * @Author: 江岸
 * @CreateTime: 2020-07-28 14:04
 * @Description:
 */
@Mapper
@Repository
public interface UserMapper {
        @Select("select * from user")
        List<User> query();

        int add(User user);
}
